import axios from '@/libs/api.request'
import config from '@/config'
/**
 * 获取用户信息
 */
export const getUserInfo = () => {
  return axios.request({
    url: '/ims-app/user/query',
    method: 'post',
    data:{}
  })
}
/**
 * 获取用户权限列表
 */
export const getRights = ()=>{
  let data = {}
  data.systemId = config.systemId
  data.isMenu = true
  return axios.request({
    url:'/ims-app//rights/system/query',
    data,
    method:'post'
  })
}